﻿using System.Web.UI;

namespace TimKen.App
{
    public class TimKenForm : System.Web.UI.HtmlControls.HtmlForm
	{
        protected override void RenderAttributes(HtmlTextWriter writer)
        {
            writer.WriteAttribute("name", this.Name);
            base.Attributes.Remove("name");

            writer.WriteAttribute("method", this.Method);
            base.Attributes.Remove("method");

            base.Attributes.Remove("action");

            this.Attributes.Render(writer);

            if (base.ID != null)
            {
                writer.WriteAttribute("id", base.ClientID);
            }
            writer.WriteAttribute("action", Action);
        }


        public string Action { get; set; }
	}
}
